extern int NM;
